import request from './api'
import qs from 'qs'
export function information (data) {
  // 拼团课程列表
  return request({
    url: '/chat/chat/information',
    method: 'post',
    data
  })
}
export function gbkstr (data) {
  // 拼团课程列表
  return request({
    url: 'adminchat/v1.adminchat/gbk_str',
    method: 'post',
    data
  })
}
// 上传图片

export function upload (data) {
  // 拼团课程列表
  return request({
    url: '/information/shopshop/upload',
    method: 'post',
    data
  })
}

export function assembleList (data) {
  // 拼团课程列表
  return request({
    url: '/assemble/v1.Assemble/assemble_list',
    method: 'post',
    data
  })
}
export function classInfo (data) {
  // 拼团课程详情
  return request({
    url: '/assemble/v1.Assemble/assemble_class_info',
    method: 'post',
    data
  })
}
// 课程列表
export function bookschapter (data) {
  return request({
    url: '/Chat/chat/books_chapter',
    method: 'post',
    data
  })
}
//  拼团购买
export function payment (data) {
  return request({
    url: '/assemble/v1.Assemble/payment',
    method: 'post',
    data
  })
}
//  正常购买
export function byCurriculum (data) {
  data = qs.stringify(data)
  return request({
    url: '/Chat/chat/by_curriculum',
    method: 'post',
    data
  })
}
//  限时购买
export function timeOutMoney (data) {
  return request({
    url: '/chat/chat/time_out_money',
    method: 'post',
    data
  })
}
//  赠送购买
export function give (data) {
  return request({
    url: '/chat/chat/give',
    method: 'post',
    data
  })
}
//  收藏
export function collectionOnclick (data) {
  return request({
    url: 'Chat/chat/collection_onclick',
    method: 'post',
    data
  })
}
export function clickSuccess (data) {
  return request({
    url: '/assemble/v1.Assemble/click_success',
    method: 'post',
    data
  })
}

export function newUser (data) {
  return request({
    url: '/chat/chat/new_user',
    method: 'post',
    data
  })
}
// 提交老师表单
export function addLecturer (data) {
  return request({
    url: 'Chat/chat/add_lecturer',
    method: 'post',
    data
  })
}
// 发送短信
export function msgDx (data) {
  data = qs.stringify(data)
  return request({
    url: 'chat/Msgal/msg_dx',
    method: 'post',
    data
  })
}
// 限时获取详情钱
export function timelimitdetails (data) {
  return request({
    url: 'chat/chat/time_limit_details',
    method: 'post',
    data
  })
}
// 只是k
export function part (data) {
  return request({
    url: 'chat/chat/lecturer_istype',
    method: 'post',
    data
  })
}
// 推广海报二维码

export function pushErweima (data) {
  return request({
    url: 'chat/chat/push_erweima_s',
    method: 'post',
    data
  })
}

export function posterdownload (data) {
  return request({
    url: 'chat/chat/poster_download',
    method: 'post',
    data
  })
}
export function cnreading (data) {
  return request({
    url: 'chat/chat/cn_reading',
    method: 'post',
    data
  })
}
export function getotherlist (data) {
  return request({
    url: '/adminchat/v1.admin/admin_look',
    method: 'post',
    data
  })
}
